home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume4 / uk-1.4 / part1 next >
Encoding:
Internet Message Format  |  1986-11-30  |  39.7 KB

  1. From: Jim Crammond <seismo!mcvax!cs.hw.ac.uk!jim>
  2. Subject: Sendmail UK-1.4 part 1 of 5
  3. Newsgroups: mod.sources
  4. Approved: jpn@panda.UUCP
  5.  
  6. Mod.sources:  Volume 4, Issue 56
  7. Submitted by: Jim Crammond <seismo!mcvax!cs.hw.ac.uk!jim>
  8.  
  9.  
  10. #    This is a shell archive.
  11. #    Remove everything above and including the cut line.
  12. #    Then run the rest of the file through sh.
  13. -----cut here-----cut here-----cut here-----cut here-----
  14. #!/bin/sh
  15. # shar:    Shell Archiver
  16. #    Run the following text with /bin/sh to create:
  17. #    README
  18. #    Upgrade
  19. #    MAKE
  20. #    Mailers.a
  21. #    Rules.a
  22. # This archive created: Fri Feb 28 13:12:52 1986
  23. echo shar: extracting README '(9615 characters)'
  24. cat << \SHAR_EOF > README
  25. Sendmail Configuration Package UK-1.4
  26. ======== ============= ======= ======
  27.  
  28. Overview
  29. --------
  30. This package provides you with tools to generates a fully domain based
  31. sendmail configuration file from domain and channel tables in a format
  32. similar to that used by MMDF.
  33.  
  34. The configuration essentially comprises of three parts: the domain tables,
  35. the channel tables and the mailer specifications.  The following diagram
  36. shows how all three pieces fit together.
  37.  
  38.                                              -----------   [  mailer,  ]
  39.                                              | channel |-->[   host,   ]
  40.              ----------  fully qualified    /| tables  |   [ transport ]
  41. incoming     | domain |  domain addresses  / -----------   [ addresses ]
  42. addresses -->| tables |--------->---------<
  43.              ----------                    \ -----------
  44.                                             \| mailer  |       header
  45.                                              | specs   |---> addresses
  46.                                              -----------
  47.  
  48. The domain tables convert addresses given to sendmail into fully qualified
  49. domain addresses; these are then passed to the channel tables which select
  50. the <network, host, transport address> triple required for message delivery.
  51.  
  52. The domain addresses are then passed to the mailer specifications where
  53. they are converted to a form suitable for the mail headers for that
  54. particular network.
  55.  
  56. Anyone who has read the Sendmail Implementation Guide should recognise
  57. the similarity between this and the rulesets diagram.  Basically, the
  58. domain tables  correspond to ruleset 3, the channel tables to ruleset 0
  59. and the mailer specifications to the mailer specific rulesets.
  60.  
  61. This README will hopefully explain how to build these pieces and thus
  62. generate a configuration file.
  63.  
  64. The package also contains a number of support programs that often provide
  65. a better interface between mail transport protocols and sendmail than the
  66. "standard" programs.
  67.  
  68.  
  69. Addresses
  70. ---------
  71. This configuration file accepts addresses in any of the standard forms:
  72.  
  73.     RFC822 style:        @domain1,@domain2:user@domain3
  74.     Percent style:        user%domain3%domain2@domain1
  75.     UUCP style:        domain1!domain2!domain3!user
  76.  
  77. If you define "NRS format", then the GreyBook big-endian domain name
  78. ordering is also understood.
  79.  
  80. Mixed addresses are handled by using the precedence order '@' > '%' > '!'
  81. e.g.    domc!user%domb@doma => user%domc%domb@doma <=> doma!domb!domc!user
  82.  
  83.  
  84. Mailers
  85. -------
  86. The following mailers are supported:
  87.  
  88.     local        the standard unix local mailer
  89.     ether        mail over the ethernet
  90.     luucp        local uucp mail (uses domain addressing)
  91.     uucp        external uucp mail
  92.     janet        janet mail, using hhcp
  93.     bitnet        bitnet mail, using rscs
  94.     csnet        csnet mail, using pmdf
  95.  
  96.  
  97. Files
  98. -----
  99. The configuration file is generated from a set of m4 files:
  100. Site independent:
  101.     base.m4        Defines special macros, options and headers etc.
  102.     version.m4    Gives the version number and history.
  103.     rules.m4    Defines the standard rulesets.
  104.     rules1.m4    Defines rulesets to do address conversions.
  105.     <mailer>m.m4    Mailer specifications - one for each mailer above.
  106.  
  107. Site dependent:
  108.     <site>.dom    Defines the domain information and conversion rules.
  109.  
  110. Host dependent:
  111.     <host>.mc    Defines some macros and reads everything else in.
  112.     <host>.chn    Defines the routing information and rules.
  113.  
  114.  
  115. Domain and Channel Tables
  116. -------------------------
  117. The <site>.dom and <host>.chn files are "compiled" from domain and channel
  118. tables in the "dom" and "chn" directories respectively.  Both of these
  119. directories contain README files which explain how to create these tables.
  120.  
  121.  
  122. Support programs
  123. ----------------
  124. The support directory contains various programs that interface with sendmail.
  125. More details about these can be found in the README in the "Support" directory.
  126.  
  127.  
  128. Names
  129. -----
  130. The initial MAKE program (see below) requires you to specify three
  131. names for making a configuration file:
  132.     a)  a host name
  133.     b)  a site name
  134.     c)  a domain name
  135.  
  136. The host and site names are simply used to determine the names of the
  137. site and host dependent files to include into the configuration file.
  138.  
  139. The domain name should be your official name registered with some
  140. recognised administrative body such as the NRS; e.g. "cs.hw.ac.uk".
  141. Failing that, it maybe a network based domain name, e.g. "hwcs.UUCP".
  142.  
  143. The initial MAKE program will allow you to specify different domain
  144. names on different mailer channels, if desired.  Note, however, that
  145. you should only have one official domain name and you should use that
  146. whereever possible.
  147.  
  148.  
  149. Multihost configuration
  150. -----------------------
  151. If you are a site which has a collection of machines, you will probably
  152. want to "hide" the machines behind one site domain name.
  153.  
  154. This will mean that people will send mail to the site, and let the sendmail
  155. on whichever machine it was received on,  route the mail to the appropriate
  156. machine for that user.
  157.  
  158. Conceptually, this is done by making each of the hosts a subdomain of the
  159. site domain and then making each host recognise both the site domain and
  160. the host specific domain name as "local".
  161.  
  162. For example, the site domain "cs.hw.ac.uk" may have the subdomains "vax1"
  163. "vax2" and "vax6". On vax1, the domains "cs.hw.ac.uk" and "vax1.cs.hw.ac.uk"
  164. are recognised as local, whilst on vax6 the domains "cs.hw.ac.uk" and
  165. "vax6.cs.hw.ac.uk" are recognised as local.  The host specific names allow
  166. mail to be routed to specific hosts within the site.
  167.  
  168. To make a multihost configuration, you should specify the multihost option
  169. when prompted by the initial MAKE program, and configure the local channel
  170. table appropriately (see the example local channel table in the "chn"
  171. directory).  Also, you will need to setup user aliases to route users' mail
  172. to their desired hosts (see below).
  173.  
  174.  
  175. Installation
  176. ------------
  177. 1.  Run "MAKE".  
  178.  
  179.     This creates a directory containing all the rules and mailer m4 files
  180.     required for a host configuration and creates the <host>.mc file.
  181.  
  182.     MAKE will first ask for your host, site and domain names, and whether
  183.     you are doing a multi-host site configuration.
  184.  
  185.     MAKE will then prompt for the mailers to include in the configuration.
  186.  
  187.     If you define the Janet mailer, then understanding NRS (big-endian)
  188.     format addresses will automatically be included in the configuration;
  189.     otherwise MAKE will ask you if you wish them to be recognised.
  190.  
  191.     Finally it creates all the files. 
  192.  
  193. 2.  "cd" to directory dom.
  194.     Here you must setup the domain tables from which the <site>.dom file
  195.     is generated.
  196.  
  197.     There is only one of these per site, so if you have already done this
  198.     on another host, just copy the tables to this host.
  199.  
  200.     More details are found in the README contained in the "dom" directory.
  201.  
  202. 3.  "cd" to directory chn
  203.     Here you must setup the channel tables which give all the routing
  204.     information from which the <host>.chn file is generated.
  205.  
  206.     More details are found in the README contained in the "chn" directory.
  207.  
  208. 4.  "cd" to the <host> directory.
  209.     Run "make" to produce the <host>.cf file.
  210.     This can be tested by using "sendmail -bt -C<host>.cf" - if you haven't
  211.     used this before then see the sendmail documentation for details.
  212.  
  213. 5.  Check that the mailer specification files have the correct
  214.     pathnames and options to the mailers, particularly the local mailer!
  215.  
  216. 6.  Install any appropriate mailer interfaces that you need from the
  217.     "Support" directory.
  218.  
  219. 7.  As superuser, run "make install" to install this. If you have a
  220.     sendmail daemon running (typically: /usr/lib/sendmail -bd -q1h),
  221.     then kill it and start a new one.
  222.  
  223.  
  224. Aliases
  225. -------
  226. Central to the success of the multihost configuration is the use of sendmail's
  227. aliases feature to determine which host a user's mail should be delivered to.
  228. The recommended scheme is to have a common set of aliases on all hosts
  229. containing all users and the host addresses to which their mail should be
  230. delivered, e.g.
  231.         jim:    jim@vax1
  232.         fred:    fred@vax2
  233.  
  234. All addresses considered "local" are subject to aliasing. So, if the aliases
  235. file on vax2 contains the above entries, mail to "jim@vax2" will be forwarded
  236. from vax2 to vax1.  Aliases can, however, be overridden by prepending a '~' to
  237. the user part of the address, so "~jim@vax2" will be delivered on vax2.
  238.  
  239.  
  240. Running shared configuration files
  241. ----------------------------------
  242. If you are running a multihost configuration, where several machines
  243. have an identical view of the network then you can run the same
  244. configuration files on those machines.
  245.  
  246. Remember that the two host dependent files that make up the configuration
  247. file are the <host>.mc and <host>.chn files.   For machines that use the
  248. same mailers, the <host>.mc file will be identical (except for the hostname
  249. definition which determines the name of the <host>.chn file).
  250.  
  251. So, only the <host>.chn file requires special attention to make it usable
  252. by several machines.  This is explained in further detail in the README
  253. in the "chn" directory.
  254.  
  255. Note that when prompted for hostname in the initial MAKE program, you can
  256. either specify one particular host's name, or use a generic name such as
  257. "workstations".
  258.  
  259.  
  260. Upgrading from UK-1.2 & UK-1.3
  261. ------------------------------
  262. If you already run UK-1.2 or UK-1.3, then you should read the file "Upgrade"
  263. in this directory which gives a guide on how to upgrade to UK-1.4.
  264.  
  265.  
  266. --------
  267. Mail bugs and comments to: JANET: uk-sendmail-workers@uk.ac.hw.cs
  268.                       ARPA:  uk-sendmail-workers@cs.hw.ac.uk
  269.                UUCP:  ..!ukc!cs.hw.ac.uk!uk-sendmail-workers
  270.  
  271.  
  272. -Jim Crammond,  Heriot-Watt University, Edinburgh.    12.2.86
  273. SHAR_EOF
  274. if test 9615 -ne "`wc -c README`"
  275. then
  276. echo shar: error transmitting README '(should have been 9615 characters)'
  277. fi
  278. echo shar: extracting Upgrade '(3876 characters)'
  279. cat << \SHAR_EOF > Upgrade
  280. Here is a brief history on the changes from UK-1.2 to UK-1.4.
  281.  
  282. UK-1.3 changes
  283. ==============
  284. dom/MAKE:    The list of top level domains can be generated from a
  285.         file top.dom which has the same format as the top.chn
  286.         in the channel tables.
  287.         Also, some obsolete code has been removed.
  288. dom/Namecheck:    This is a new program to check tables for name clashes.
  289. chn/MAKE:    Changes to make the janet "general rule" fire only after
  290.         all specific rules failed to match.
  291. MAKE:        Added NRSFORMAT definition, so that non-Janet hosts can
  292.         understand big-endian format.
  293. Rules.a:    Added options for sendmail 4.40.
  294. Support/muucp:    Added OnlyGrade option for use with ukuucp.
  295.  
  296. Domain Literals
  297. ---------------
  298. A number of changes have been made to cater for the use of domain literals
  299. in addresses, for Janet mailers.  This includes modifications to mailer.c
  300. and hhsend.c to cope properly with such addresses.  Each of these calls 
  301. routines in dlit.c to convert from YBTS addresses to domain literals and
  302. vice versa.  dlit.c defines a table of networks and their DNIC's and gateway
  303. addresses, in order to do these conversions.
  304.  
  305.  
  306. UK-1.4 changes
  307. ==============
  308. Mailers.a:    local mailer specification improved.
  309. Rules.a:    Message-Id headers added, plus some other minor changes.
  310. dom/MAKE:    minor bug fix, plus a minor internal change.
  311. chn/MAKE:    Various internal changes. In particular, code has been added
  312.         to trap unknown local domain errors.
  313. Support/muucp:    A new version to fit in with the new version of ukuucp (v2.1).
  314.         It also strips dupicate domains in the uucp from line.
  315. Support/bsmtp:    This is now supplied with the package.
  316.  
  317. Csnet-PhoneNet
  318. --------------
  319. A number of changes have been made to add support for CSNet PhoneNet mail,
  320. using the pmdf package.
  321.  
  322.  
  323. Upgrading from UK-1.2 to UK-1.4
  324. ===============================
  325. 1. Make a new directory for UK-1.4 and copy the chn and dom
  326.    files that you made for UK-1.2 into the new direcories
  327.  
  328. 2. Link chn/top.chn to dom/top.dom. Then run the dom/MAKE and chn/MAKE
  329.    as before.
  330.  
  331. 3. Run the top level MAKE.  This is similar to the MAKE in UK-1.2.
  332.    The main difference is that hosts without a Janet mailer have the
  333.    option of understanding NRS format addresses.
  334.  
  335. 4. (Uucp users) (optional, but recommended)  Reinstall muucp.
  336.    If you have SYSINFO defined in your uucp system, then by adding a
  337.    line to your L.info such as:   "uucphost O=A:Wk0900-1800"
  338.    you can make demand driven mail-only calls to that system. See the
  339.    uucp documentation for details.
  340.    To use this, the "-r" option must be removed from the luucpm.m4 and/or
  341.    uucpm.m4 files.
  342.  
  343. 5. (Janet users) (optional, but recommended)  Reinstall mailer and hhsend,
  344.    which can now both cope with domain literals, as follows:
  345.     a)  edit dlit.c and change the table "nets" to reflect your
  346.         view of the X25 world.
  347.     b)  make mailer and hhsend.
  348.  
  349. 6. You can now make the sendmail.cf file in the usual way.
  350.  
  351. Upgrading from UK-1.3 to UK-1.4
  352. ===============================
  353. 1. Either follow steps 1 - 3 in the previous section, or
  354.    a) replace the following files in you UK-1.3 directory with the
  355.       new ones in this package: dom/MAKE, chn/MAKE, Rules.a and Mailers.a
  356.  
  357.    b) recompile your channel table(s) with the new chn/MAKE
  358.  
  359.    c) (optional) recompile your domain table(s) with the new dom/MAKE
  360.  
  361.    d) cd to each of the host directories and run the two commands:
  362.     ar x ../Rules.a
  363.     ar x ../Mailers.a *m.m4
  364.  
  365. 2. (uucp users) (optional, but recommended)  Reinstall muucp, as
  366.    described in step 4 of the previous section. (This was supplied
  367.    as fix #4 in 1.3, so you may have already done this).
  368.  
  369. 3. (janet users) If you are running the new D2.2 York code distribution
  370.    then recompile hhsend with the -DYORKD2_2 flag.
  371.  
  372. 4. You can now make the sendmail.cf file in the usual way.
  373.  
  374. Problems/Comments to: uk-sendmail-workers@uk.ac.hw.cs  or 
  375.               uk-sendmail-workers@cs.hw.ac.uk
  376. SHAR_EOF
  377. if test 3876 -ne "`wc -c Upgrade`"
  378. then
  379. echo shar: error transmitting Upgrade '(should have been 3876 characters)'
  380. fi
  381. echo shar: extracting MAKE '(4821 characters)'
  382. cat << \SHAR_EOF > MAKE
  383. #!/bin/sh
  384.  
  385. echo 'Sendmail initial configuration program  UK-1.4
  386. '
  387.  
  388. ether=
  389. ethername=
  390. uucp=
  391. uucpname=
  392. janet=
  393. janetname=
  394. bitnet=
  395. bitnetname=
  396. csnet=
  397. csnetname=
  398. nonrsformat=
  399.  
  400. #
  401. #  gather site dependant information about names and mailers
  402. #
  403. host=`(hostname) 2> /dev/null || (uuname -l) 2> /dev/null`
  404. site=$host
  405.  
  406. echo -n "Enter hostname ($host): "
  407. read reply
  408. if [ -n "$reply" ]
  409. then
  410.     host=$reply
  411. fi
  412.  
  413. echo -n "Enter sitename ($site): "
  414. read reply
  415. if [ -n "$reply" ]
  416. then
  417.     site=$reply
  418. fi
  419.  
  420. echo -n "
  421.     Is this a multihost site, where a collection of hosts
  422.     are made to look like one site? (y|n) "
  423. read reply
  424. if [ "$reply" = "y" ]
  425. then
  426.     echo -n "Complete domain name: $host."
  427.     multihost='(multihost site)'
  428. else
  429.     echo -n "Enter domain name: "
  430. fi
  431. read domain
  432.  
  433. echo -n "
  434. Host name = $host, Site name = $site, Domain name = $domain ${multihost}
  435. confirm? (y|n) "
  436.  
  437. read reply
  438. if [ "$reply" != 'y' ]
  439. then
  440.     echo 'Start again'
  441.     exit 1
  442. fi
  443.  
  444. echo "
  445. A list of available mailer configurations  will follow
  446. type 'y' at the prompt to include the specified mailer.
  447. "
  448.  
  449. echo -n "ethernet? "
  450. read reply
  451. if [ "$reply" = 'y' ]
  452. then
  453.     ether=etherm.m4
  454.     echo -n "Domain name on ethernet channel ($domain): "
  455.     read ethername
  456.     if [ -z "$ethername" ]
  457.     then
  458.         ethername=\$J
  459.     fi
  460. fi
  461.  
  462. echo -n "local uucp? "
  463. read reply
  464. if [ "$reply" = 'y' ]
  465. then
  466.     luucp=luucpm.m4
  467.     echo -n "Domain name on local uucp channel ($domain): "
  468.     read luucpname
  469.     if [ -z "$luucpname" ]
  470.     then
  471.         luucpname=\$J
  472.     fi
  473. fi
  474.  
  475. echo -n "uucp? "
  476. read reply
  477. if [ "$reply" = 'y' ]
  478. then
  479.     uucp=uucpm.m4
  480.     echo -n "Domain name on uucp channel ($domain): "
  481.     read uucpname
  482.     if [ -z "$uucpname" ]
  483.     then
  484.         uucpname=\$J
  485.         uucpsysname=`uuname -l`
  486.     else
  487.         uucpsysname=`echo $uucpname | sed 's/\..*//'`
  488.     fi
  489.  
  490.     echo -n "uucp system name ($uucpsysname): "
  491.     read reply
  492.     if [ -n "$reply" ]
  493.     then
  494.         uucpsysname=$reply
  495.     fi
  496. fi
  497.  
  498. echo -n "janet? "
  499. read reply
  500. if [ "$reply" = 'y' ]
  501. then
  502.     janet=hhcpm.m4
  503.     echo -n "Domain name on janet channel (in 822 format) ($domain): "
  504.     read janetname
  505.     if [ -z "$janetname" ]
  506.     then
  507.         janetname=\$J
  508.     fi
  509. fi
  510.  
  511. echo -n "bitnet? "
  512. read reply
  513. if [ "$reply" = 'y' ]
  514. then
  515.     bitnet=bitnetm.m4
  516.     echo -n "Domain name on bitnet channel ($domain): "
  517.     read bitnetname
  518.     if [ -z "$bitnetname" ]
  519.     then
  520.         bitnetname=\$J
  521.     fi
  522. fi
  523.  
  524. echo -n "csnet? "
  525. read reply
  526. if [ "$reply" = 'y' ]
  527. then
  528.     csnet=pmdfm.m4
  529.     echo -n "Domain name on csnet channel ($domain): "
  530.     read csnetname
  531.     if [ -z "$csnetname" ]
  532.     then
  533.         csnetname=\$J
  534.     fi
  535. fi
  536.  
  537. #
  538. #  if janet isn't defined, see if NRS domain ordering is required anyway
  539. #
  540. if [ -z "$janetname" ]
  541. then    echo -n "
  542.     Do you need to understand NRS domain ordering? (y|n) "
  543.     read reply
  544.     if [ $reply = 'n' ]
  545.     then
  546.         nonrsformat=true
  547.     fi
  548. fi
  549.  
  550. #
  551. #  now start creating the files
  552. #
  553. echo -n "
  554. Making directory $host... "
  555. if mkdir $host
  556. then
  557.     cd $host
  558. else
  559.     echo mkdir failed, aborted
  560.     exit 1
  561. fi
  562.  
  563. echo -n '
  564. creating rules... '
  565. ar x ../Rules.a
  566. echo -n '
  567. creating mailers... '
  568. ar x ../Mailers.a localm.m4 $ether $luucp $uucp $janet $bitnet $csnet
  569.  
  570. echo -n '
  571. creating Makefile... '
  572. cat >Makefile <<EOF
  573. #######################################################################
  574. #
  575. #    Makefile for Sendmail configuration files
  576. #
  577. #    @(#)Makefile    UK-1.4 sendmail configuartion        12/2/86
  578. #
  579. #######################################################################
  580. HOST=$host
  581. SITE=$site
  582. RULES=base.m4 rules.m4 rules1.m4 version.m4
  583. MAILERS=localm.m4 $ether $luucp $uucp $janet $bitnet $csnet
  584.  
  585. EOF
  586.  
  587. cat >>Makefile <<'EOF'
  588. .SUFFIXES: .mc .cf
  589.  
  590. .mc.cf:
  591.     m4 $*.mc > $*.cf
  592.  
  593. $(HOST).cf:    $(RULES) $(MAILERS) $(SITE).dom $(HOST).chn
  594.  
  595. $(SITE).dom:    ../dom/$(SITE).dom
  596.         cp ../dom/$(SITE).dom $(SITE).dom
  597.  
  598. $(HOST).chn:    ../chn/$(HOST).chn
  599.         cp ../chn/$(HOST).chn $(HOST).chn
  600.  
  601. install:    $(HOST).cf
  602.     sed -e '/^#/d' -e '/^$$/d' $(HOST).cf > /usr/lib/sendmail.cf
  603.     -if [ -f /usr/lib/sendmail.fc ]; then /usr/lib/sendmail -bz; fi
  604. EOF
  605.  
  606. echo -n "
  607. creating $host.mc... "
  608. cat >$host.mc <<EOF
  609. define(\`HOST',\`$host')
  610. define(\`SITE',\`$site')
  611. define(\`DOMAIN',\`$domain')
  612. EOF
  613.  
  614. if [ -n "$multihost" ]
  615. then
  616.     echo "define(\`MULTIHOST')" >> $host.mc
  617. fi
  618.  
  619. if [ -z "$nonrsformat" ]
  620. then
  621.     echo "define(\`NRSFORMAT')" >> $host.mc
  622. fi
  623.  
  624. if [ -n "$ethername" ]
  625. then
  626.     echo "define(\`ETHERNAME',\`$ethername')" >> $host.mc
  627. fi
  628.  
  629. if [ -n "$luucpname" ]
  630. then
  631.     echo "define(\`LUUCPNAME',\`$luucpname')" >> $host.mc
  632. fi
  633.  
  634. if [ -n "$uucpname" ]
  635. then
  636.     echo "define(\`UUCPNAME',\`$uucpname')" >> $host.mc
  637.     echo "define(\`UUCPSYSNAME',\`$uucpsysname')" >> $host.mc
  638. fi
  639.  
  640. if [ -n "$janetname" ]
  641. then
  642.     echo "define(\`JANETNAME',\`$janetname')" >> $host.mc
  643. fi
  644.  
  645. if [ -n "$bitnetname" ]
  646. then
  647.     echo "define(\`BITNETNAME',\`$bitnetname')" >> $host.mc
  648. fi
  649.  
  650. if [ -n "$csnetname" ]
  651. then
  652.     echo "define(\`CSNETNAME',\`$csnetname')" >> $host.mc
  653. fi
  654.  
  655. echo 'include(base.m4)' >> $host.mc
  656.  
  657. echo "
  658. Initial configuration complete.
  659.  
  660. You now have to make the $site.dom and $host.chn files.
  661. "
  662.  
  663. exit
  664. SHAR_EOF
  665. if test 4821 -ne "`wc -c MAKE`"
  666. then
  667. echo shar: error transmitting MAKE '(should have been 4821 characters)'
  668. else
  669. chmod a+x MAKE
  670. fi
  671. echo shar: extracting Mailers.a '(7336 characters)'
  672. cat << \SHAR_EOF > Mailers.a
  673. !<arch>
  674. bitnetm.m4      508594634   217   4     100644  959       `
  675. ###############################################################################
  676. ###############################################################################
  677. #####
  678. #####        Bitnet Mailer specification
  679. #####
  680. #####    @(#)bitnetm.m4    UK-1.4 sendmail configuration        12/2/86
  681. #####
  682. ###############################################################################
  683. ###############################################################################
  684.  
  685. Mbitnet,    P=/usr/bin/vmcopy, F=SnsFDMR, S=25, R=25,
  686.     A=vmcopy $u@$h class=M fname=MAILER ftype=MAIL width=80 device=PUNCH
  687.  
  688. S25
  689.  
  690. R$+@$+            $@$1@$2            return user@domain
  691. R$+            $@$1@BITNETNAME        add local domain name
  692.  
  693.  
  694. ##################################################################
  695. #####
  696. #####    Arpa/Uucp Mail Via Batched Simple Mail Transfer Protocol
  697. #####
  698. ##################################################################
  699.  
  700. Mbsmtp,    P=/usr/local/lib/rscs/bsmtp, F=SnsmFDMRuhX, S=25, R=25, M=100000,
  701.     A=bsmtp $h BITNETNAME $g $u
  702.  
  703. etherm.m4       508594635   217   4     100644  562       `
  704. ###############################################################################
  705. ###############################################################################
  706. #####
  707. #####        Ethernet Mailer specification
  708. #####
  709. #####    @(#)etherm.m4    UK-1.4 sendmail configuration        12/2/86
  710. #####
  711. ###############################################################################
  712. ###############################################################################
  713.  
  714. Mether,    P=[IPC], F=nsmFDMRuXC, S=21, R=2, A=IPC $h
  715.  
  716. S21
  717. R$+@$+            $@$1@$2            address ok
  718. R$+            $@$1@ETHERNAME        add local hostname
  719. hhcpm.m4        508594636   217   4     100644  681       `
  720. ###############################################################################
  721. ###############################################################################
  722. #####
  723. #####        Janet Mailer specification
  724. #####
  725. #####    @(#)hhcpm.m4    UK-1.4 sendmail configuration        12/2/86
  726. #####
  727. ###############################################################################
  728. ###############################################################################
  729.  
  730. Mhhcp, P=/usr/lib/x25/hhsend, F=nsmFDMxVu, S=24, R=24, M=100000,
  731.     A=hhsend $h $u
  732.  
  733. S24
  734. R$+@[$+]        $@$1@[$2]        domain literals
  735. R$+@$+            $@$>9$1@$2        RFC822 -> NRS style
  736.  
  737. R$+            $:$1@JANETNAME        user -> user@mydomain
  738. R$+@$+            $@$>9$1@$2        RFC822 -> NRS style
  739.  
  740. localm.m4       508594637   217   4     100644  1321      `
  741. ###############################################################################
  742. ###############################################################################
  743. #####
  744. #####        Local and Program Mailer specification
  745. #####
  746. #####    @(#)localm.m4    UK-1.4 sendmail configuration        12/2/86
  747. #####
  748. ###############################################################################
  749. ###############################################################################
  750.  
  751. Mlocal,      P=/bin/mail, F=rnlsmFDR, S=20, R=20, A=mail -d $u
  752. Mbinmail, P=/bin/mail, F=rnlsmFDR, S=20, R=20, A=mail -d $u
  753. Mprog,      P=/bin/sh,   F=nlsFDR,   S=20, R=20, A=sh -c $u
  754.  
  755. #
  756. #  Apparent uucp addresses are converted back to old style so that
  757. #  ucb-mail can cope with replies.
  758. #  Otherwise addresses are presented as fully qualified domain names.
  759. #
  760. S20
  761.  
  762. R@            MAILER-DAEMON        errors to mailer-daemon
  763. R~$+            $1            remove '~' in To: line
  764. R$+@[$+]        $@$1@[$2]        domain literals
  765.  
  766. # we assume an address is a uucp address if it contains more than two
  767. # hostnames (as opposed to domain names).  This is not always right..
  768. R$+%$-%$-@$+        $:$>12$1%$2%$3@$4    strip outer domain name
  769. R$+%$-%$-@$+        $@$>8$1%$2%$3@$4    convert to uucp address
  770.  
  771. ifdef(`NRSFORMAT',`
  772. # comment out next line if you want addresses presented in 822 format
  773. R$+@$-.$+        $@$>9$1@$2.$3        convert to NRS domain ordering')
  774.  
  775. luucpm.m4       508594638   217   4     100644  608       `
  776. ###############################################################################
  777. ###############################################################################
  778. #####
  779. #####        Local UUCP Mailer specification
  780. #####
  781. #####    @(#)luucpm.m4    UK-1.4 sendmail configuration        12/2/86
  782. #####
  783. ###############################################################################
  784. ###############################################################################
  785.  
  786. Mluucp,    P=/usr/lib/uucp/muucp, F=nsmFDMRuh, S=22, R=22, M=100000,
  787.     A=muucp -gA -f$g -H$j $h $u
  788.  
  789. S22
  790. R$+@$+            $@$1@$2            address ok
  791. R$+            $@$1@LUUCPNAME        add local hostname
  792. pmdfm.m4        508594639   217   4     100644  618       `
  793. ###############################################################################
  794. ###############################################################################
  795. #####
  796. #####        CSNet PhoneNet Mailer specification
  797. #####
  798. #####    @(#)pmdfm.m4    UK-1.4 sendmail configuration        12/2/86
  799. #####
  800. ###############################################################################
  801. ###############################################################################
  802.  
  803. Mpmdf,    P=/usr/local/lib/pmdf/pmdf-submit, F=nsmFDMR, S=26, R=26, M=100000,
  804.     A=pmdf-submit -f $g $u
  805.  
  806. S26
  807. R$+@$+            $@$1@$2            address ok
  808. R$+            $@$1@CSNETNAME        add local domain name
  809. uucpm.m4        508594640   217   4     100644  754       `
  810. ###############################################################################
  811. ###############################################################################
  812. #####
  813. #####        UUCP Mailer specification
  814. #####
  815. #####    @(#)uucpm.m4    UK-1.4 sendmail configuration        12/2/86
  816. #####
  817. ###############################################################################
  818. ###############################################################################
  819.  
  820. Muucp,    P=/usr/lib/uucp/muucp, F=nsmFDMRuh, S=23, R=23, M=100000,
  821.     A=muucp -r -gA -f$f@UUCPNAME -H$U $h $u
  822.  
  823. #
  824. #  Addresses are kept in percent style, rather than 822 style as sendmail
  825. #  can't produce a correct routed 822 address from another style
  826. #
  827. S23
  828. R$+@$+            $@$1@$2            address ok
  829. R$+            $@$1@UUCPNAME        add local hostname
  830. luucpm.m4.old   508594686   217   4     100644  594       `
  831. ###############################################################################
  832. ###############################################################################
  833. #####
  834. #####        Local UUCP Mailer specification
  835. #####
  836. #####    @(#)luucpm.m4    UK-1.4 sendmail configuration        12/2/86
  837. #####
  838. ###############################################################################
  839. ###############################################################################
  840.  
  841. Mluucp,    P=/usr/bin/uux, F=smFDMRuh, S=22, R=22, M=100000,
  842.     A=uux - $h!rmail ($u)
  843.  
  844. S22
  845. R$+@$+            $@$1@$2            address ok
  846. R$+            $@$1@LUUCPNAME        add local hostname
  847. uucpm.m4.old    508594687   217   4     100644  688       `
  848. ###############################################################################
  849. ###############################################################################
  850. #####
  851. #####        UUCP Mailer specification
  852. #####
  853. #####    @(#)uucpm.m4    UK-1.4 sendmail configuration        12/2/86
  854. #####
  855. ###############################################################################
  856. ###############################################################################
  857.  
  858. Muucp,    P=/usr/bin/uux, F=sFDMRuh, S=23, R=23, M=100000,
  859.     A=uux - -r -gA $h!rmail ($u)
  860.  
  861. #
  862. #  Addresses are converted back to uucp style.
  863. #
  864. S23
  865. R$+@$+            $:$>8$1@$2        convert to uucp style
  866. R$+!$+            $@$1!$2            address ok
  867. R$+            $@UUCPNAME!$1        add local domain name
  868. SHAR_EOF
  869. if test 7336 -ne "`wc -c Mailers.a`"
  870. then
  871. echo shar: error transmitting Mailers.a '(should have been 7336 characters)'
  872. fi
  873. echo shar: extracting Rules.a '(13336 characters)'
  874. cat << \SHAR_EOF > Rules.a
  875. !<arch>
  876. base.m4         508594731   217   4     100644  3142      `
  877. ##################################################################
  878. ##################################################################
  879. #####
  880. #####        SENDMAIL CONFIGURATION FILE  UK-1.4
  881. #####
  882. #####   Copyright Jim Crammond, Heriot-Watt University. Feb. 1986.
  883. #####
  884. #####    This configuration file maybe be freely distributed,
  885. #####    provided no profit is gained by doing so.
  886. #####
  887. ##################################################################
  888. ##################################################################
  889.  
  890. ##################################################################
  891. `###'    HOST configuration file
  892. ##################################################################
  893.  
  894. # offical site domain name
  895. DJ`'DOMAIN
  896.  
  897. # offical host domain name
  898. ifdef(`MULTIHOST',`Dj$w.$J',`Dj$J')
  899.  
  900. # uucp hostname
  901. ifdef(`UUCPNAME',DU`'UUCPSYSNAME)
  902.  
  903. ############################################################
  904. #
  905. #    General configuration information
  906. #
  907. ############################################################
  908.  
  909. include(version.m4)
  910.  
  911. ##########################
  912. ###   Special macros   ###
  913. ##########################
  914.  
  915. # my name
  916. DnMAILER-DAEMON
  917. # UNIX header format
  918. DlFrom $g $d remote from $U
  919. # delimiter (operator) characters (note '~' has been added)
  920. Do.:%@!^=/[]~
  921. # format of a total name
  922. Dq$?x$x $.<$g>
  923. # SMTP login message
  924. De$j Sendmail $v/$V ready at $b
  925.  
  926. ###################
  927. ###   Options   ###
  928. ###################
  929.  
  930. # location of alias file
  931. OA/usr/lib/aliases
  932. # default delivery mode (deliver in background)
  933. Odbackground
  934. # mail to me too (needed for multihost sites)
  935. Om
  936. # (don't) connect to "expensive" mailers
  937. #Oc
  938. # temporary file mode
  939. OF0644
  940. # default GID
  941. Og1
  942. # location of help file
  943. OH/usr/lib/sendmail.hf
  944. # log level
  945. OL9
  946. # default messages to old style
  947. Oo
  948. # queue directory
  949. OQ/usr/spool/mqueue
  950. # read timeout -- violates protocols
  951. Or2h
  952. # status file
  953. OS/usr/lib/sendmail.st
  954. # queue up everything before starting transmission
  955. # Os
  956. # default timeout interval
  957. OT3d
  958. # time zone names (V6 only)
  959. # OtGMT,BST
  960. # default UID
  961. Ou1
  962. # wizard's password
  963. OWz3GvK.dPUxieQ
  964. # load averages at which to start queuing/refuse connections
  965. Ox8
  966. OX12
  967.  
  968. ###############################
  969. ###   Message precedences   ###
  970. ###############################
  971.  
  972. Pfirst-class=0
  973. Pspecial-delivery=100
  974. Pjunk=-100
  975.  
  976. #########################
  977. ###   Trusted users   ###
  978. #########################
  979.  
  980. Troot
  981. Tdaemon
  982. Tuucp
  983. Tjim
  984.  
  985. #############################
  986. ###   Format of headers   ###
  987. #############################
  988.  
  989. H?F?From: $q
  990. H?D?Date: $a
  991. H?M?Message-Id: <$p.$t@$j>
  992. H?F?Resent-From: $q
  993. H?D?Resent-Date: $a
  994. H?M?Resent-Message-Id: <$p.$t@$j>
  995. HSubject:
  996. H?R?Received: $?sfrom $s by $j; $b$.
  997. H?V?Via: $?s$s; $b$.
  998.  
  999.  
  1000. ##########################
  1001. ###    The Rulesets    ###
  1002. ##########################
  1003. include(rules.m4)
  1004. include(rules1.m4)
  1005. include(SITE.dom)
  1006. include(HOST.chn)
  1007.  
  1008. #########################
  1009. ###    The Mailers    ###
  1010. #########################
  1011. include(localm.m4)
  1012. ifdef(`ETHERNAME',`include(etherm.m4)')
  1013. ifdef(`LUUCPNAME',`include(luucpm.m4)')
  1014. ifdef(`UUCPNAME',`include(uucpm.m4)')
  1015. ifdef(`JANETNAME',`include(hhcpm.m4)')
  1016. ifdef(`BITNETNAME',`include(bitnetm.m4)')
  1017. ifdef(`CSNETNAME',`include(pmdfm.m4)')
  1018. rules.m4        508594751   217   4     100644  3240      `
  1019. ###############################################################################
  1020. ###############################################################################
  1021. #####
  1022. #####    @(#)rules.m4    UK-1.4 sendmail configuration        12/2/86
  1023. #####
  1024. #####    The rulesets
  1025. #####
  1026. ###############################################################################
  1027. ###############################################################################
  1028.  
  1029. ###############################################
  1030. #  Ruleset 0  --  Select mailer to be used    #
  1031. ###############################################
  1032. S0
  1033.  
  1034. # strip local domain name(s)
  1035. R$+@$+            $:$>15$1@$2
  1036.  
  1037. # local mail
  1038. R$-            $#local$:$1        local mail - maybe aliased
  1039. R~$-            $#binmail$:$1        local mail - no aliasing
  1040.  
  1041. #
  1042. # convert domain address into "<address>host.network" triple
  1043. #
  1044. R$+@$+.$=T        $:$>16$1@$2.$3        routing and address conversion
  1045.  
  1046. # select mailer
  1047. ifdef(`ETHERNAME',`
  1048. R<$+>$-.ether        $#ether$@$2$:$1        local ethernet mail
  1049. ')
  1050. ifdef(`LUUCPNAME',`
  1051. R<~$+>$+.luucp        <\\~$1>$2.luucp        band-aid for uuxqt
  1052. R<$+>$-.luucp        $#luucp$@$2$:$1        local uucp mail
  1053. ')
  1054. ifdef(`UUCPNAME',`
  1055. R<~$+>$+.uucp        <\\~$1>$2.uucp        band-aid for uuxqt
  1056. R<$+>$-.uucp        $#uucp$@$2$:$1        external uucp mail
  1057. ')
  1058. ifdef(`JANETNAME',`
  1059. R<$+>$+.janet        $#hhcp$@$2$:$1        janet mail
  1060. R$+@[$+]        $#hhcp$@[$2]$:$1    pass domain literals to hhcp
  1061. ')
  1062. ifdef(`BITNETNAME',`
  1063. R<$+>$-.bitnet        $#bitnet$@$2$:$1    bitnet mail
  1064. R<$+>$+.bsmtp        $#bsmtp$@$2$:$1        arpa/uucp mail via bitnet
  1065. ')
  1066. ifdef(`CSNETNAME',`
  1067. R<$+>$+.csnet        $#pmdf$@$2$:$1        csnet mail
  1068. ')
  1069.  
  1070. # anything else with an '@' in is an error
  1071. R$+@$+            $#error$:Domain Unknown
  1072.  
  1073. # anything else - e.g. filenames, pipes etc goes to local mailer
  1074. R$+            $#local$:$1        local
  1075.  
  1076.  
  1077. ###############################################
  1078. #  Ruleset 1  --  Sender Field Pre-rewriting  #
  1079. ###############################################
  1080. S1
  1081.  
  1082.  
  1083. ##################################################
  1084. #  Ruleset 2  --  Recipient Field Pre-rewriting  #
  1085. ##################################################
  1086. S2
  1087.  
  1088.  
  1089. ##########################################
  1090. #  Ruleset 3  --  Name Canonicalisation  #
  1091. ##########################################
  1092. S3
  1093.  
  1094. #  handle special cases
  1095. R$-            $@$1            return "user"
  1096. R~$-            $@~$1            return "~ user"
  1097. R<>            $@@            turn null into magic token
  1098.  
  1099. #  basic textual canonicalisation
  1100. R$*<$*>$*        $2            basic RFC 822 parsing
  1101. R$+ at $+        $1@$2            " at " -> "@" for RFC 822
  1102. R$+%$+            $1@$2            convert '%'s to '@'s
  1103. R$+@$+@$+        $1%$2@$3        then reduce to only one '@'
  1104.  
  1105. #  Address conversions. See rules1.m4 for the gory details
  1106. R@$+:$+            $:$>5@$1:$2        RFC822 to Percent form
  1107. R$+!$+            $:$>7$1!$2        uucp to Percent form
  1108.  
  1109. ifdef(`NRSFORMAT',`
  1110. R$+@$+.$+        $:$>13$1@$2.$3        NRS ordering to 822 ordering
  1111. ')
  1112.  
  1113. `#'  Domain name expansion. See SITE`'.dom for the details
  1114. R$+@$+            $:$>11$1@$2        expand incomplete domain names
  1115. R$+@$+            $:$>10$1@$2        do domain name aliases
  1116.  
  1117.  
  1118. ###############################################
  1119. #  Ruleset 4  --  Final Output Post-rewriting #
  1120. ###############################################
  1121.  
  1122. #  header rewriting is done in the per-mailer rulesets.
  1123.  
  1124. S4
  1125. R@            $@            handle <> error addr
  1126. R$+@$+            $@$1@$2            already ok
  1127.  
  1128. #  this ensures that $u has at least one '@' in (if percent style)
  1129. R$+%$+            $1@$2            convert '%'s to '@'s
  1130. R$+@$+@$+        $1%$2@$3        then reduce to only one '@'
  1131. rules1.m4       508594753   217   4     100644  3447      `
  1132. ###############################################################################
  1133. ###############################################################################
  1134. #####
  1135. #####    @(#)rules1.m4    UK-1.4 sendmail configuration        12/2/86
  1136. #####
  1137. #####    Address conversion rulesets
  1138. #####
  1139. ###############################################################################
  1140. ###############################################################################
  1141.  
  1142.  
  1143. ########################################################
  1144. #  Ruleset 5  --  RFC source routing -> Percent style  #
  1145. ########################################################
  1146.  
  1147. #
  1148. #  convert a routed address in RFC822 form to Percent form
  1149. #  e.g. @ucl-cs.arpa,@kcl-cs.uucp:jim@hwcs.uucp  ->
  1150. #                    jim%hwcs.uucp%kcl-cs.uucp@ucl-cs.arpa
  1151. #
  1152. S5
  1153.  
  1154. R$+,$+            $1:$2            @a,@b,@c:u%d -> @a:@b:@c:u%d
  1155. R$*@$*            $1%$2            @a:@b:@c:u@d -> %a:%b:%c:u%d
  1156.  
  1157. R%$+:$+            $:$2@$1            %a:%b:%c:u%d -> %b:%c:u%d@a
  1158. R%$+:$+@$+        $2@$1@$3        %b:%c:u%d@a  -> u%d@c@b@a
  1159. R$+@$+@$+        $1%$2@$3        u%d@c@b@a    -> u%d%c%b@a
  1160.  
  1161. ##############################################################
  1162. #  Ruleset 6  --  Percent style source routing -> RFC style  #
  1163. ##############################################################
  1164.  
  1165. #
  1166. #  convert a routed address in the Percent form to RFC822 form
  1167. #  e.g.    jim%hwcs.uucp%kcl-cs.uucp@ucl-cs.arpa  ->
  1168. #                @ucl-cs.arpa,@kcl-cs.uucp:jim@hwcs.uucp
  1169. #    DONT USE THIS RULE!
  1170. #    Since the rulesets are not given the whole header field, we
  1171. #    can't tell whether or not to add brackets (and a phrase)
  1172. S6
  1173.  
  1174. R$+@$+            $1%$2            u%d%c%b@a    -> u%d%c%b%a
  1175. R$+%$+%$+        $:@$3:$1@$2        u%d%c%b%a    -> @c%b%a:u@d
  1176. R$+%$+:$+        @$2:$1:$3        @c%b%a:u%d   -> @a:@b:@c:u@d
  1177. R$+:$+:$+        $1,$2:$3        @a:@b:@c:u@d -> @a,@b,@c:u@d
  1178.  
  1179. ###############################################################
  1180. #  Ruleset 7  --  uucp style source routing -> Percent style  #
  1181. ###############################################################
  1182.  
  1183. #
  1184. #  convert an address in uucp form to Percent form
  1185. #  e.g. kcl-cs.uucp!hwcs.uucp!jim -> jim%hwcs.uucp@kcl-cs.uucp
  1186. #
  1187. #  also converts mixed addresses, giving '@' and '%' priority over '!'
  1188. #  e.g. hwcs!jim%kcl-cs.uucp@ucl-cs.arpa -> jim%hwcs%kcl-cs.uucp@ucl-cs.arpa
  1189. #
  1190. S7
  1191.  
  1192. # handle mixed addresses (with '!'s, '@'s and maybe '%'s in)
  1193. R$+!$+%$+        $1!$2@$3        c!d!u%b@a -> c!d!u@b@a
  1194. R$+!$+@$+        $2@$1@$3        c!d!u@b@a -> u@d@c@b@a
  1195.  
  1196. # handle pure uucp addresses
  1197. R$+!$+            $:$2@$1            a!b!c!d!u -> b!c!d!u@a
  1198. R$+!$+@$+        $2@$1@$3        b!c!d!u@a -> u@d@c@b@a
  1199.  
  1200. R$+@$+@$+        $1%$2@$3        u@d@c@b@a -> u%d%c%b@a
  1201.  
  1202. ###############################################################
  1203. #  Ruleset 8  --  Percent style to uucp style source routing  #
  1204. ###############################################################
  1205.  
  1206. #
  1207. #  convert a Percent style address to uucp (domain1!domain2!user) form
  1208. #  e.g. jim%hwcs.uucp@kcl-cs.uucp -> kcl-cs.uucp!hwcs.uucp!jim
  1209. #
  1210. S8
  1211.  
  1212. R$+%$+            $1@$2            u%d%c%b@a -> u@d@c@b@a
  1213. R$+@$+            $:$2!$1            u@d@c@b@a -> d@c@b@a!u
  1214. R$+@$+!$+        $2!$1!$3        d@c@b@a!u -> a!b!c!d!u
  1215.  
  1216. ifdef(`NRSFORMAT',`
  1217. #####################################################
  1218. #  Ruleset 9  --  NRS <-> RFC822 domain conversion  #
  1219. #####################################################
  1220.  
  1221. #
  1222. # swap the order of the sub-domains around.
  1223. # e.g. steve@uk.ac.ucl-cs.44d => steve@44d.ucl-cs.ac.uk
  1224. #
  1225. # this assumes that no colons will appear in the rhs of the domain address
  1226. #
  1227. S9
  1228.  
  1229. R$*@$+.$+        $1@$2:$3        u@a.b.c.d -> u@a:b:c:d
  1230. R$*@$-:$+        $:$1@$3.$2        u@a:b:c:d -> u@b:c:d.a
  1231. R$*@$-:$+.$+        $1@$3.$2.$4        u@b:c:d.a -> u@d.c.b.a
  1232. ')
  1233.  
  1234. version.m4      508594758   217   4     100644  3257      `
  1235. #
  1236. #    @(#)version.m4    UK-1.4 sendmail configuration        12/2/86
  1237. #
  1238.  
  1239. DVUK-1.4
  1240.  
  1241. #
  1242. #    UK-1.4  12/2/86        jim
  1243. #    COMMENTS:
  1244. #    Added code to catch unknown local subdomains as errors.
  1245. #    Added support for CSNet PhoneNet mailer.
  1246. #    Merged barpa and buucp mailers into one bsmtp mailer (bitnet).
  1247. #    Delay use of bitnet general rule in the same way as for janet.
  1248. #    Added Message-Id header specification; generated for non-local mail.
  1249. #    Changed local mailer specification to give fully qualified names
  1250. #    except on uucp bang paths where domain is stripped.
  1251. #    Changed "-f" argument to muucp from $f to $g.
  1252. #    Changed "h" mailer flag to "u" in Janet mailer.
  1253. #
  1254. #    UK-1.3  8/9/85        jim
  1255. #    COMMENTS:
  1256. #    Delay use of general rule for janet mailer until no specific
  1257. #    rule matches in uk domain.
  1258. #    NRS domain order handling now ifdef-ed NRSFORMAT; thus separating
  1259. #    it from Janet mailer specific code
  1260. #    Domain literals now accepted & passed to Janet mailer.
  1261. #    Set "metoo" option. Helps with multihost sites that talk SMTP.
  1262. #    Set "x" & "X" options (load averages) for newer versions of sendmail
  1263. #
  1264. #    UK-1.2    9/6/85        jim
  1265. #    COMMENTS:
  1266. #    Bug fix: SMTP won't talk between local hosts of a multihost site.
  1267. #    use $J to define site domain name, $j is the host domain name.
  1268. #    Renumbered rulesets:
  1269. #        Rulesets  0 -  4 :    basic rulesets
  1270. #        Rulesets  5 -  9 :    address conversions
  1271. #        Rulesets 10 - 13 :    domain name handling
  1272. #        Rulesets 15 - 17 :    channel routing
  1273. #        Rulesets 20 - 25 :    mailer specifications
  1274. #    Reorganised channel routing to allow multiple names for local domain
  1275. #    and to retry the main routing ruleset, with higher level domains
  1276. #    when no match is found, before trying top level domain relaying.
  1277. #    Each mailer channel can now have a different local domain name
  1278. #    (default is official name - $J).  Multihost stuff simplified.
  1279. #    New uucp front end program replaces uux. Produces the correct from line.
  1280. #    
  1281. #
  1282. #    UK-1.1    22/4/85        jim
  1283. #    COMMENTS:
  1284. #    Changed janet rules in ruleset 3 to cope properly with domain expansion.
  1285. #    Changed output of ruleset 9 (channel ruleset) so that ruleset 0
  1286. #    can parse multiple-token hostnames.  Support files for janet added.
  1287. #    Renamed janet mailer to "hhcp". Added 'n' mailer flag to prog mailer.
  1288. #    Added ruleset 8 to detect and convert NRS style domains to 822 style.
  1289. #
  1290. #    UK-1.0    26/3/85        jim
  1291. #    COMMENTS:
  1292. #    Some rearranging. Removed ruleset 8 (path optimisation) as it
  1293. #    optimised munged addresses away completely! 
  1294. #    Ruleset 4 ensures an '@' in Percent style address.
  1295. #    Uucp ruleset rewritten to get as close to the uucp transmission
  1296. #    standard as sendmail allows.
  1297. #
  1298. #    HW-5.1    1/3/85        jim
  1299. #    COMMENTS:
  1300. #    Fixed bug with mailing to filenames. Other cleanup for
  1301. #    distribution version.
  1302. #
  1303. #    HW-5.0    26/2/85        jim
  1304. #    COMMENTS:
  1305. #    major restructuring: rewrote ruleset 3 which now converts
  1306. #    all addresses to one style. Added bitnet mailer and ether mailer
  1307. #    Rewrote all the mailer specs. Various other cleanups.
  1308. #
  1309. #
  1310. #    HW-4.3    10/1/85        jim
  1311. #    COMMENTS:
  1312. #    Cope with rfc822 style routing and renumber some rulesets
  1313. #
  1314. #    HW-4.2    4/1/85        jim
  1315. #    COMMENTS:
  1316. #    Put in janet mailer definitions and rules
  1317. #
  1318. #    HW-4.1    17/12/84    jim
  1319. #    COMMENTS:
  1320. #    Some modifications and cleanup for distribution
  1321. #
  1322. #    HW-4.0    5/12/84        jim
  1323. #    COMMENTS:
  1324. #    This is a complete rewrite based on some ideas borrowed from
  1325. #    mmdf.
  1326. #
  1327.  
  1328. SHAR_EOF
  1329. if test 13336 -ne "`wc -c Rules.a`"
  1330. then
  1331. echo shar: error transmitting Rules.a '(should have been 13336 characters)'
  1332. fi
  1333. #    End of shell archive
  1334. exit 0
  1335.  
  1336.